package com.sec.android.app.myfiles.module.trash;

import com.samsung.android.sdk.slinkcloud.CloudGatewayMediaStore;
import com.sec.android.app.myfiles.provider.DbTableInfo;

/**
 * Created by gw8951.kim on 2016-11-12.
 */

public class TrashDbTableInfo extends DbTableInfo {

    private static TrashDbTableInfo sInstance;

    public static DbTableInfo getInstance() {
        if(sInstance == null) {
            sInstance = new TrashDbTableInfo();
        }
        return sInstance;
    }

    private TrashDbTableInfo() {
        // need to add Trash Db Table info
        mTableColumn.add(new DB_Column(COLUMN_ID.ID, CloudGatewayMediaStore.FileBrowser.FileBrowserColumns._ID, ""));
        mTableColumn.add(new DB_Column(COLUMN_ID.NAME, CloudGatewayMediaStore.FileBrowser.FileBrowserColumns.DISPLAY_NAME, ""));
        mTableColumn.add(new DB_Column(COLUMN_ID.SIZE, CloudGatewayMediaStore.FileBrowser.FileBrowserColumns.SIZE, ""));
        mTableColumn.add(new DB_Column(COLUMN_ID.DATE, CloudGatewayMediaStore.FileBrowser.FileBrowserColumns.LAST_MODIFIED, ""));

        mTableColumn.add(new DB_Column(COLUMN_ID.EXT, CloudGatewayMediaStore.FileBrowser.FileBrowserColumns.MIME_TYPE, ""));
        mTableColumn.add(new DB_Column(COLUMN_ID.MEDIA_ID, CloudGatewayMediaStore.FileBrowser.FileBrowserColumns.MEDIA_ID, ""));
        mTableColumn.add(new DB_Column(COLUMN_ID.FILE_ID, CloudGatewayMediaStore.FileBrowser.FileBrowserColumns.FILE_ID, ""));
        mTableColumn.add(new DB_Column(COLUMN_ID.DEVICE_ID, CloudGatewayMediaStore.MediaColumns.DEVICE_ID, ""));
        mTableColumn.add(new DB_Column(COLUMN_ID.ALTERNATIVE_LINK, CloudGatewayMediaStore.MediaColumns.FULL_URI, ""));
        mTableColumn.add(new DB_Column(COLUMN_ID.ITEM_COUNT, CloudGatewayMediaStore.Files.FileColumns.CHILD_CNT, ""));
        mTableColumn.add(new DB_Column(COLUMN_ID.TRASH_PROCESSING, CloudGatewayMediaStore.Files.FileColumns.TRASH_PROCESSING, ""));
    }

    @Override
    public String getTableName() {
        final String tableName = "Samsung_Drive_Trash";
        return tableName;
    }

    @Override
    public boolean isRealDb() {
        return false;
    }
}
